package com.adderis.soft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.adderis.soft.domain.dao.ICloudpointDao;
import com.adderis.soft.domain.model.Cloudpoint;
import com.adderis.soft.service.ICloudpointBo;

@Service("cloudpointService")
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
public class CloudpointServiceImpl implements ICloudpointBo {


	@Autowired
	private ICloudpointDao cloudpointDao;

	@Transactional(readOnly = false)
	public void persist(Cloudpoint transientCloudpoint) {
		cloudpointDao.persist(transientCloudpoint);

	}

	@Transactional(readOnly = false)
	public void remove(Cloudpoint persistentCloudpoint) {
		cloudpointDao.remove(persistentCloudpoint);

	}

	@Transactional(readOnly = false)
	public Cloudpoint merge(Cloudpoint detachedCloudpoint) {

		return cloudpointDao.merge(detachedCloudpoint);
	}
	
	@Transactional(readOnly = false)
	public void remove(Integer id) {
		cloudpointDao.remove(id);

	}

	public Cloudpoint findById(Integer id) {
		return cloudpointDao.findById(id);
	}

	public List<Cloudpoint> findAll() {
		return cloudpointDao.findAll();
	}

	public List<Cloudpoint> search(String searchString) {
		return cloudpointDao.search(searchString);
	}

	

}
